package com.yuandian.management.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuandian.api.management.entity.ConfReturnCode;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.management.vo.CodeDetailsExcelVo;
import com.yuandian.utils.poi.ExcelService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * 返回码配置表-Service接口
 * @author zfsn
 * @date 2023-3-28
 */
public interface ConfReturnCodeService extends IService<ConfReturnCode>, ExcelService<CodeDetailsExcelVo> {

	/**
	 * 分页查询
	 * @param confReturnCode 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfReturnCode> listPage(ConfReturnCode confReturnCode);


	/**
	 * 新增数据
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
	R<String> saveReturnCode(ConfReturnCode confReturnCode);


	/**
	 * 通过主键更新数据
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
	R<String> updateReturnCodeById(ConfReturnCode confReturnCode);

	/**
	 * 获取返回码信息
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
	List<ConfReturnCode> getCodeDetail(ConfReturnCode confReturnCode);

	/**
	 * 下载专返回码导入模板
	 *
	 * @param response
	 */
	void importTemplate(HttpServletResponse response) throws IOException;

}
